# -*- coding: utf-8 -*-
# @Author    : Tian Wencheng
# @CreateTime: 2021/1/12 18:35
# @FileName  : keyword_exception.py
# @IDE       : PyCharm
# @Git       : https://gitee.com/dianetian/projects

from common.log import logger


class KeywordNotFound(Exception):
    def __init__(self, keyword):
        self.keyword = keyword

    def __str__(self):
        logger.error(f"'{self.keyword}' not found in keyword_mapping table.")
